<% if (session.getAttribute("userid") != null) {%>
<html xmlns="http://www.w3.org/1999/xhtml"> 
    <%@page import="facebook.Utilities"%>
    <head> 
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/> 
        <title>Cerca Eventi</title> 
        <%@ include file="/style/styles.html" %>
        <%@ include file="/js/libraries.html" %>
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?libraries=places&sensor=false&language=it&region=IT"></script> 
        <script type="text/javascript" src="./js/jquery.stream-1.1.min.js"></script> 
        <script type="text/javascript" src="./js/render-mappa.js"></script> 
        <script type="text/javascript" src="./js/georeferenziazione.js"></script> 
        <script type="text/javascript" src="./js/autocompletamento.js"></script> 
        <script type="text/javascript" src="./js/ricerca.js"></script> 
        <script type="text/javascript" src="./js/percorso.js"></script>
        <script type="text/javascript">
            var baseURL ="<%out.print(Utilities.getBaseUrl(request));%>/SlowMapsServlet";
        </script>
    </head> 
    <body onLoad="init();initMenuFriends();"> 
        <div id="wrapper">

            <%@ include file="/header.jsp" %>
            <div id="body">
                <img src="/delo-war/images/welcome_search.png" alt="Welcome_search" height="34" width="316" style="margin:50px 0px">
                <span id="status" class="start">&numsp;</span>
                <div>
                    <div id="box-mappa">
                        <div id="top">
                            <div id="localizzazione" class="map-form">
                                <h3>Dove sei?</h3>
                                <input id="address" type="textbox" value="Italia"> 
                                <input type="button" value="Trovami" onClick="codeAddress()"> 

                            </div>
                            <div id="calcola-percorso" class="map-form">
                                <h3>Calcola il percorso</h3>
                                <div class="corpo-menu">
                                    <select id="mode" onChange="calcRoute()">
                                        <option value="DRIVING">Automobile</option>
                                        <option value="WALKING">Passeggiata</option>
                                    </select>
                                    <input type="button" value="Calcola" onClick="calcRoute()"/>
                                </div>
                            </div>
                        </div>
                        <div id="map" ></div>
                    </div>
                    <div id="risultati-box">
                        <div class="risultati">
                            <div id="ricerca-eventi">
                                <h3>Ricerca Eventi dei Tuoi Amici</h3>
                                <div class="corpo-menu">
                                    <form>
                                        <label>Da</label><input size="10" type="text" class="datepicker" id="data-from" value=""/>
                                        <label>A</label><input size="10" type="text" class="datepicker" id="data-to" value=""/> 
                                        <!--                            <div><label>Citt&aacute;</label><input type="text" id="city-form" value="" style="width: 250px;"/></div>-->
                                        <input type="button" value="Find" onClick="doSearch()"/> <input type="reset" value="Reset" onClick="doSearch()"/> 
                                    </form>
                                </div>
                            </div>  
                            <div id="sponsorised"></div>
                            <div id="searchwell"></div> 
                        </div>
                    </div>
                </div> 
                <div id="directionsPanel"> 
                    <div id="total"></div> 
                </div> 
                <br /> 
            </div> 

            <div id="footer">
                unito.it - DIPARTIMENTO DI INFORMATICA (Facolt&agrave; di Scienze M.F.N.) - C.so Svizzera 185, Torino
            </div>
        </div>
    </body> 
</html> 

<% } else
        response.sendRedirect(Utilities.getBaseUrl(request));
%>